Groups
Sign in
Groups
mozilla.dev.tech.js-engine.internals
Conversations
About
Send feedback
Help
info
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Re: How to reliably make an ArrayBufferView wrapped?
13 views
Skip to first unread message
Emilio Cobos Álvarez
unread,
Mar 25, 2019, 2:08:34 PM
3/25/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-tech-js-en...@lists.mozilla.org, violet.b...@gmail.com
+dev-tech-js-engine-internals, where relevant people are more likely to
see it :)
On 25/03/2019 09:22,
violet.b...@gmail.com
wrote:
> When solving this bug
https://phabricator.services.mozilla.com/D24009
. I need to write a test. The bug is basically caused by overlooking the possible wrapper around an ArrayBufferView that is checked by JS_IsArrayBufferViewObject().
>
> See
https://searchfox.org/mozilla-central/source/js/src/vm/ArrayBufferViewObject.cpp#164
, the check will return true if canUnwrapAs<ArrayBufferViewObject>(), it's possible that the object itself is not an ArrayBufferView.
>
> In the test, I want to make sure the object is indeed a wrapped one. Is there a reliable way to write JavaScript code to achieve this?
>
> Thanks!
> _______________________________________________
> dev-platform mailing list
>
dev-pl...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-platform
>
0 new messages
Search
Clear search
Close search
Google apps
Main menu